import Index from '../pages/index';
import List from '../pages/list';
import News from '../pages/news';
import Message from '../pages/message';
import Detail from '../pages/detail';
import {Navigate} from 'react-router-dom';
export default [
    {
        path:'/index',
        element:<Index/>
    },
    {
        path:'/list',
        element:<List/>,
        children:[
            {
                path:'news',
                element:<News/>
            },
            {
                path:'message',
                element:<Message/>,
                children:[
                    {
                        path:'detail',
                        element:<Detail/>
                    }
                ]
            }
        ]
    },
    {
        path:'/',
        element:<Navigate to="/list"/>
    }
]